<template>
<!-- 底部菜单 -->
<ul class="footer">
	<li @click="toIndex()">
		<i class="fa fa-home"></i>
		首页
	</li>
	<li>
		<i class="fa fa-compass"></i>
		发现
	</li>
	<li @click="toOrderList()">
		<i class="fa fa-file-o"></i>
		订单
	</li>
	<li>
		<i class="fa fa-user-o"></i>
		我的
	</li>
</ul>	
</template>

<script>
	export default{
		name:'Footer',
		methods:{
			toIndex(){
				this.$router.push({path:'/index'})
			},
			toOrderList(){
				this.$router.push({path:'/orderList'})
			}
		}
	}
</script>

<style>
	/* 底部菜单 */
	.wrapper .footer {
		width: 100%;
		height: 14vw;
		background-color: #fff;
		border-top: 1px solid #DDD;

		display: flex;
		justify-content: space-around;
		align-items: center;

		/* 设置固定在底部 */
		position: fixed;
		left: 0;
		bottom: 0;
	}

	.wrapper .footer li {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;

		color: #999;
		font-size: 2.8vw;
	}

	.wrapper .footer li i {

		font-size: 6vw;
	}	
</style>
